package com.shark.uh.model.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseQuery {

    @NotNull
    @Min(value = 1)
    private int pageNo;

    @NotNull
    @Min(value = 1)
    @Max(value = 50)
    private int pageSize;

    @NotBlank
    @Size(min = 1, max = 50)
    private String orderBy;

    @NotBlank
    @Size(min = 1, max = 20)
    private String status;
}
